package cn.com.dhcc.ddi.monitor.service;

import cn.com.dhcc.ddi.monitor.service.compute.MonitorComputeInterface;

public enum QUOTA {
	FS_USED_RATE("文件系统使用率"),
	PM_USED_RATE("物理内存使用率"),
	H_USED_RATE("堆空间使用率"),
	NH_USED_RATE("非堆空间使用率"),
	CPU_USED_RATE("CPU使用率"),
	DS_CONN_STATUS("节点连接状态");


	private String desc;
	private Class<? extends MonitorComputeInterface> handler; //
	private QUOTA(String desc){
		this.desc = desc;
	}
	private QUOTA(String desc,Class<? extends MonitorComputeInterface> handler){
		this.desc = desc;
		this.handler = handler;
	}
	
	public String getDesc() {
		return desc;
	}
	public Class<? extends MonitorComputeInterface> getHandler() {
		return handler;
	}
	public String getCode() {
		return this.name().toLowerCase();
	}
}
